package com.dg11185.nearshop.net.response;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * 修改资料结果
 * 
 * @author wanliang527
 * @date 2014-4-29
 */
public class ModifyInfoResponse {
    public final static String SUCCESS = "SUCCESS";// 成功
    public final static String FAILE = "FAILE";// 调用失败
    public final static String ILLEGAL_PAR = "ILLEGAL_PAR";// 参数异常
    public final static String EXCEPTION = "EXCEPTION";// WS调用失败
    public final static String ILLEGAL_SIGN = "ILLEGAL_SIGN";// 签名无效

    public final static String MEM_ILLEGALPWD = "MEM_ILLEGALPWD";// 旧密码不正确，用于修改密码

    public String responseStr = "";
    public String status;

    public void parseJson(String response) throws JSONException {
        this.responseStr = response;
        JSONObject jsonObject = new JSONObject(response);
        status = jsonObject.getString("status");
    }

}
